package cn.wolfcode.mapper;

import cn.wolfcode.domain.Notice;
import cn.wolfcode.qo.NoticeQueryObject;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface NoticeMapper {

    int deleteByPrimaryKey(Long id);

    int insert(Notice record);

    Notice selectByPrimaryKey(Long id);

    List<Notice> selectAll();

    int updateByPrimaryKey(Notice record);

    List<Notice> selectForList(NoticeQueryObject qo);

    void updateStatus(@Param("id") Long id, @Param("postStatus") Integer postStatus);

    void show(@Param("id") Long id, @Param("haveRead") Integer haveRead);
}